<?php
class Simpleforms_Library {
    
    public function startForm($action, $method)
    {
        $form =  '<from action="$action" method="$method">';
        return $form;
    }
    public function inputForm($description, $type, $name, $value)
    {
        $form =  $description . ' <input type="'.$type.'" name="'.$name.'" value="'.$value.'"/><br/>';
        return $form;
    }
    public function textareaForm($description, $name, $rows, $cols, $value)
    {
        $form = $description . '<textarea name="'.$name.'" rows="'.$rows.'" cols="'.$cols.'" value="'.$value.'"></textarea><br/>';
        return $form;
    }
    
    public function formEnd()
    {
        $form =  '</form>';
        return $form;
    }
    
}